package com.bgs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @program: xkgc
 * @description:
 * @author: Mr.Zhao
 * @create: 2022-05-17 16:46
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FinWrite implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "核销id")
    @TableId(value = "writeoff_id", type = IdType.AUTO)
    private Integer writeoffId;

    @ApiModelProperty(value = "订单编号")
    private String ordernumber;

    @ApiModelProperty(value = "订单类型（0是年度服务费 1是充值订单 2是月度奖励）")
    private Integer type;

    @ApiModelProperty(value = "订单金额")
    private Double money;

    @ApiModelProperty(value = "支付状态（0是未支付 1是已支付）")
    private Integer paymentState;

    @ApiModelProperty(value = "支付方式（0是支付宝 1是微信 2是银行卡）")
    private Integer paymentMode;

    @ApiModelProperty(value = "支付流水号")
    private String serial;



    @ApiModelProperty(value = "支付时间")
    private LocalDateTime paymentTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creationTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除（y是删除 n是未删除）")
    private String isDel;


    @ApiModelProperty(value = "收入")
    private Double income;

    @ApiModelProperty(value = "支出")
    private Double expenditure;

    @ApiModelProperty(value = "订单类型（1是回收订单 2是商品订单 3是其他）")
    private Integer orderType;

    @ApiModelProperty(value = "财务状态（1是已入账 2是已出账）")
    private Integer financeState;

    @ApiModelProperty(value = "订单编号")
    private String number;

    @ApiModelProperty(value = "门店id")
    private Integer storeId;

    @ApiModelProperty(value = "钱包")
    private Double wallet;

    @ApiModelProperty(value = "身份标识（1是用户 2是骑手 3是门店人员）")
    private Integer userType;

}
